package com.muyu.danmo.service.impl;


import com.muyu.danmo.domain.DanmoPrintingDoor;
import com.muyu.danmo.mapper.DanmoPrintingDoorMapper;
import com.muyu.danmo.service.IDanmoPrintingDoorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 印刷出版门头Service业务层处理
 *
 * @author yangle
 * @date 2024-10-21
 */
@Service
public class DanmoPrintingDoorServiceImpl implements IDanmoPrintingDoorService
{
    @Autowired
    private DanmoPrintingDoorMapper danmoPrintingDoorMapper;

    /**
     * 查询印刷出版门头
     *
     * @param id 印刷出版门头主键
     * @return 印刷出版门头
     */
    @Override
    public DanmoPrintingDoor selectDanmoPrintingDoorById(Long id)
    {
        return danmoPrintingDoorMapper.selectDanmoPrintingDoorById(id);
    }

    /**
     * 查询印刷出版门头列表
     *
     * @param danmoPrintingDoor 印刷出版门头
     * @return 印刷出版门头
     */
    @Override
    public List<DanmoPrintingDoor> selectDanmoPrintingDoorList(DanmoPrintingDoor danmoPrintingDoor)
    {
        return danmoPrintingDoorMapper.selectDanmoPrintingDoorList(danmoPrintingDoor);
    }

    /**
     * 新增印刷出版门头
     *
     * @param danmoPrintingDoor 印刷出版门头
     * @return 结果
     */
    @Override
    public int insertDanmoPrintingDoor(DanmoPrintingDoor danmoPrintingDoor)
    {
        return danmoPrintingDoorMapper.insertDanmoPrintingDoor(danmoPrintingDoor);
    }

    /**
     * 修改印刷出版门头
     *
     * @param danmoPrintingDoor 印刷出版门头
     * @return 结果
     */
    @Override
    public int updateDanmoPrintingDoor(DanmoPrintingDoor danmoPrintingDoor)
    {
        return danmoPrintingDoorMapper.updateDanmoPrintingDoor(danmoPrintingDoor);
    }

    /**
     * 批量删除印刷出版门头
     *
     * @param ids 需要删除的印刷出版门头主键
     * @return 结果
     */
    @Override
    public int deleteDanmoPrintingDoorByIds(Long[] ids)
    {
        return danmoPrintingDoorMapper.deleteDanmoPrintingDoorByIds(ids);
    }

    /**
     * 删除印刷出版门头信息
     *
     * @param id 印刷出版门头主键
     * @return 结果
     */
    @Override
    public int deleteDanmoPrintingDoorById(Long id)
    {
        return danmoPrintingDoorMapper.deleteDanmoPrintingDoorById(id);
    }
}
